﻿#pragma once
#include "Support/rapidjson/JsonIOHandler.h"
#include "TerrainIDInfo.h"

class CTerrainIDInfoReaderHandle :
	public BaseReaderHandler<_stTerrainIDInfo, BYTE>
{
public:
	CTerrainIDInfoReaderHandle(std::unordered_map<BYTE, _stTerrainIDInfo>* map);
	bool HandleInt(const std::wstring& key, int i);
	bool HandleString(const std::wstring& key, const std::wstring& str);
	bool HandleStartObj(const std::wstring& key);
	bool HandleEndObj();
private:
	_stTerrainIDInfo m_TerrainIDInfo;		// 临时的对象,用于向m_list_OperatorPtr中push,不产生栈指针问题
};